<?php
$media = explode(',',get('ini_media_id'));
if( get('ini_media') && is_category() && ( in_category($media) || in_des_cat($media) ) ){ # 判断是否媒体分类
	include "media.php";
}
else {
?>
<?php ini_map()?>
	<div id="content">
		<div class="post-list">
<?php
if ( get('ini_ad1')&&get('ini_mad') ){ echo "<div class='ad1'>".get('ini_ad1_code')."</div>\n";}
	while ( have_posts() ): the_post();
		include 'article.php';
	endwhile;
if( get('ini_ad2')&&get('ini_mad') ){ echo "<div class='ad2'>".get('ini_ad2_code')."</div>\n";}
?>
		</div>
	</div>
	<div id="pagination"><?php next_posts_link(__('浏览更多')); ?></div>
<?php get_sidebar();?>
<?php }?>
<?php get_footer();?>